import request from '@/utils/request'

export function login (data) {
    return request({
        url: '/api/users/login',
        method: 'post',
        data,
    })
}

// 获取用户权限
export function getAuthList (id) {
    return request({
        url: `/auth/users/auth/${id}`,
        method: 'get',
    })
}
